package GameElements.Elements;

import java.util.Vector;

import GameElements.Tile;
import Utils.Point3D;

public class ElementFactory 
{
	private static final ElementFactory instance = new ElementFactory();
	
	private ElementFactory(){}
    
	public final static ElementFactory getInstance() 
	{
		return instance;
	}
	
	public Element createElement(Vector<Tile> ensTile, Vector<Point3D> chemin, int type)
	{
		if(type == Tile.castle)
			return new Castle(ensTile, chemin);
		else if(type == Tile.street)
			return new Street(ensTile, chemin);
		else if(type == Tile.cloister)
			return new Cloister(ensTile, chemin);
		System.out.println("ensemble non créer");
		return null;
	}
	
	
}
